<?php

define('_DOCENTE_', 1);

include '../config.inc.php';
include _FLEP_LIB_DIR_.'common.inc.php';
include _FLEP_INCLUDE_DIR_.'html_footer.inc.php';

flep_session_start();

if (flep_valid_login($_SESSION['user'])) {
    header("Location: main.php");
    exit();
}
?><!DOCTYPE html>
<html>
    <head>
        <title>FLEP - Foreign Languages Extension Program</title>
        <link href="request.php?res=common.css" type="text/css" rel="stylesheet">
        <link href="request.php?res=index.css" type="text/css" rel="stylesheet">
        <meta name="viewport" content="width=device-width">
        <meta charset="utf-8" />
    </head>
    <body>
        <div id="container">
            <div id="header">
            <table>
              <tr><td rowspan="2">
                  <img src="request.php?res=logo.png" alt="" title="Foreign Languages Extension Program" />
              </td>
              <td style="vertical-align:bottom; padding: 0px 20px;">
                  <label>Universidad de El Salvador</label>
              </td>
              </tr><tr><td style="border-bottom: groove 1px #BBBBBB; vertical-align:top; padding: 0px 20px;">
                  <label>Foreign Languages Extension Program</label>
              </td></tr>
            </table>
            </div>
            <div id="page">
                <p><?php
                    echo $_SESSION['user']['msg'];
                    $_SESSION['user']['msg'] = null;
                    ?></p>
                <form action="login.php" method="POST">
                    <fieldset>
                        <legend><img src="request.php?res=user.png" alt="">&nbsp;Docentes FLEP</legend>
                        <label>Usuario:</label><br>
                        <input type="text" name="user"><br>
                        <label>Contrase&ntilde;a:</label><br>
                        <input type="password" name="pass"><br>
                        <input type="submit" value="Entrar">
                    </fieldset>
                </form>
            </div>
            <?php flep_html_footer(); ?>
        </div>
    </body>
</html>
